customize_render_section_{$this->id}
Action HookDescription
Fires before rendering a specific Customizer section. The dynamic portion of the hook name, `$this->id`, refers to the ID of the specific Customizer section to be rendered.Hook Information
File Location |
wp-includes/class-wp-customize-section.php
View on GitHub
|
Hook Type | Action |
Line Number | 313 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into customize_render_section_{$this->id}
add_action('customize_render_section_{$this->id}', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-section.php:313
- How this hook is used in WordPress core
<?php
308 * The dynamic portion of the hook name, `$this->id`, refers to the ID
309 * of the specific Customizer section to be rendered.
310 *
311 * @since 3.4.0
312 */
313 do_action( "customize_render_section_{$this->id}" );
314
315 $this->render();
316 }
317
318 /**
PHP Documentation
<?php
/**
* Fires before rendering a specific Customizer section.
*
* The dynamic portion of the hook name, `$this->id`, refers to the ID
* of the specific Customizer section to be rendered.
*
* @since 3.4.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/class-wp-customize-section.php
Related Hooks
Related hooks will be displayed here in future updates.